package com.community.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName portal_wallet_log
 */
@TableName(value ="portal_wallet_log")
public class PortalWalletLog implements Serializable {
    /**
     * 记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 钱包id
     */
    @TableField("wallet_id")
    private Integer walletId;

    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 金额
     */
    @ApiModelProperty("金额")
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 
     */
    @ApiModelProperty("操作类型 1.支付 2.充值 3.转入 4.转出 5.退款 6.缴费")
    @TableField(value = "type")
    private Integer type;

    /**
     * 1：成功, -1：失败
     */
    @ApiModelProperty("操作结果 1.成功 -1.失败")
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWalletId() {
        return walletId;
    }

    public void setWalletId(Integer walletId) {
        this.walletId = walletId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}